package com.study.bob.dependencyinjection.designPattern;

/**
 * Created by bob on 2016/4/30.
 */
public class MyDIApplication implements  Consumer{
    MessageService ms = null;

    public MyDIApplication(MessageService ms){
        this.ms = ms;
    }

    @Override
    public void processMessage(String content, String recevier) {
        this.ms.sendMessage(content, recevier);
    }
}
